package com.gpframework.module.ctn.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gpframework.module.ctn.domain.GpReceiptGoods;
import com.gpframework.module.ctn.domain.GpSackInformation;
import com.gpframework.module.ctn.domain.vo.GpCtnOrderExcel;
import com.gpframework.module.ctn.domain.vo.GpSackInformationExcel;
import com.gpframework.module.ctn.domain.vo.GpSackInformationVo;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
import java.util.List;
/**
 * @ClassName GpSackInformation
 * @Author gpframework
 * @Date 2024-02-28
 * @Version 1.0.0
 * @Description 散货信息填写Service接口
 */
public interface IGpSackInformationService extends IService<GpSackInformation> {

    /**
     * @Description 查询列表返回VO 用于返回给前端的列表接口
     * @Author gpframework
     * @Date 2024-02-28
     * @Param [lqw]
     * @Return List<GpSackInformationVo>
     */
    List<GpSackInformationVo> listVo(QueryWrapper<GpSackInformation> lqw);

    List<GpSackInformationVo> listVoed(QueryWrapper<GpSackInformation> lqw);

    /**
     * @Description 通过查询详情VO 用于返回给前端的列详情接口
     * @Author gpframework
     * @Date 2024-02-28
     * @Param [id]
     * @Return GpSackInformationVo
     */
    GpSackInformationVo getVoById(Long id);

    List<GpSackInformationExcel> gpSackInformationImport(List<GpSackInformationExcel> excelList, Long brandId, Long storeId);

    Boolean updateBatch(GpReceiptGoods gpReceiptGoods);

    boolean copy(Long id, Integer copyNum);


    GpCtnOrderExcel getString(Collection<?> coll, Object ob, InputStream inputStream, String fileName) throws IOException;
}
